<script setup>
import FanLoadingView from '..'
</script>

<template>
	<demo-block title="基础用法">
		<FanLoadingView loading></FanLoadingView>
	</demo-block>

	<demo-block title="进阶用法">
		<FanLoadingView loading color="var(--fan-primary-color)"></FanLoadingView>
		<FanLoadingView style="margin: 20px 0" loading :error="{ message: '出错了' }"></FanLoadingView>
		<FanLoadingView loading :error="{ title: '错误', message: '出错了', button: '再试一次' }"></FanLoadingView>
	</demo-block>
</template>
